package org.sixtythousand.joker.http;

import org.sixtythousand.joker.JChannel;
import org.sixtythousand.joker.Request;
import org.sixtythousand.joker.util.AbstractLifeCycle;

/**
 * @author zhoulk
 * @date 2023/10/12 14:33
 * @desc
 */
public abstract class AbstractHttpRequest extends AbstractLifeCycle implements Request, HttpRequest {

    protected HttpChannel channel;
    protected HttpResponse response;



    public AbstractHttpRequest(HttpChannel channel) {
        this.channel = channel;
    }


    @Override
    public boolean isHandled() {
        return false;
    }

    @Override
    public HttpChannel getChannel() {
        return channel;
    }


    @Override
    abstract public AbstractHttpRequest method(String method);

    @Override
    public String getPath() {
        return null;
    }



}
